package com.example.app2;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.GridView;

public class MainActivity extends AppCompatActivity {
    GridView photoGv;
    PhotoAdapter adapter;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        photoGv = findViewById(R.id.gv_photo);
        String[] imageurls = ImageUrls.imageurls;
        adapter = new PhotoAdapter(this,imageurls);
        photoGv.setAdapter(adapter);
    }
}